package com.mworld.galaxy.bull.entity.product;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotBlank;

import com.mworld.galaxy.bull.entity.MemberUser;
import com.mworld.galaxy.bull.entity.StatefulIdEntity;

@Entity
@Table(name = "t_shop")
public class Shop extends StatefulIdEntity {
    private MemberUser memberUser;
    private String name; // 店铺名称
    private String domainName; // 店铺二级域名
    private String homepage;
    private String contactor;
    private String cellphone;
    private String phone;
    private String fax;
    private String email;
    private String introduction;

    public Shop() {
        super();
    }
    public Shop(Long id) {
        super(id);
    }

    @ManyToOne
    @JoinColumn(name = "c_member_id")
    public MemberUser getMemberUser() {
        return memberUser;
    }

    public void setMemberUser(MemberUser member) {
        this.memberUser = member;
    }

    @NotBlank
    @Column(name = "c_name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @NotBlank
    @Column(name = "c_domain_name")
    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    @Column(name = "c_homepage")
    public String getHomepage() {
        return homepage;
    }

    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }

    @Column(name = "c_contactor")
    public String getContactor() {
        return contactor;
    }

    public void setContactor(String contactor) {
        this.contactor = contactor;
    }

    @Column(name = "c_cellphone")
    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    @Column(name = "c_phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "c_fax")
    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    @Column(name = "c_email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "c_introduction")
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

}
